package cn.wolfcode.tieba.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 回复表
 */
@Getter
@Setter
@ToString
@TableName("reply")
public class Reply {
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 回复内容*/
    private String content;

    /** 所属帖子*/
    private Long postedId;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;  //创建时间

}